how to solve algebraic inequalities